<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<!--<div class='container'>-->
     <div class="tabbable"> <!-- Only required for left/right tabs -->
	<?=$tab_header;?>
       <div class="tab-content" style='height:450px;'>
            <div class="tab-pane active" id="table2"><?=$this->zetro_auth->allAuth($frm,'neraca_percobaan');?></div>
	       <div id='rst' class='alert' style='display:none'>Please wait...<img src='<?=base_url();?>asset/img/indicator.gif'></div>
       </div>
    </div>
	<?=$modal;?>
<!--</div>-->
<? CalenderUI();link_js('jquery.fixedheader','asset/js/');?>
<? //link_js('rpt_bukubesar','application/zetro_js/');?>
<script language='javascript'>
$(document).ready(function(e) {
	$('#lvl_akun').val('1').select();
	tglNow('#from_tgl');tglNow('#upto_tgl');
	$('#from_tgl').datepicker();$('#upto_tgl').datepicker();
	$('#b_Preview').click(function(){
		($('#frm1').validationEngine('validate'))?
		_show_pp():'';
	})
	$('#d_Preview').click(function(){
		$('#PrintPrev').modal('hide');
	})
});
function _show_pp()
{
	$('div#rst').css({'display':'block'});
	$.post('print_neracacal',$('#frm1').serialize(),
	function(result)
	{
		$('div#rst').css({'display':'none'});
		$('#prv').attr('src',result);
		$('#PrintPrev .modal-body').css({'width':(screen.availWidth-170),'height':(screen.availHeight-205),'overflow':'auto'});
		$('#PrintPrev')
			.css({'left':'25%','width':(screen.availWidth-150),'height':(screen.availHeight-150)})
			.modal('show');
	})
}

</script>

